package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2020-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_tail_trucks")
public class TailTrucksDo extends Model<TailTrucksDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("trucks_number")
    private String trucksNumber;

    /**
     * 所有订单的公司标识拼接起来
     */
    @TableField("trucks_company_code")
    private String trucksCompanyCode;

    /**
     * 所有订单po号拼接起来
     */
    @TableField("po_number_muti")
    private String poNumberMuti;

    @TableField("total_volume")
    private Double totalVolume;

    @TableField("total_weight")
    private Double totalWeight;

    /**
     * 总箱数
     */
    @TableField("package_count")
    private Integer packageCount;

    /**
     * 总件数
     */
    @TableField("product_count")
    private Integer productCount;

    /**
     * 仓库
     */
    @TableField("storage_id")
    private Long storageId;

    @TableField("fba_storage_id")
    private Long fbaStorageId;

    /**
     * 约车模板id
     */
    @TableField("trucks_id")
    private Long trucksId;

    /**
     * 预约id 手动输入
     */
    @TableField("appointment_code")
    private String appointmentCode;

    /**
     * 亚马逊确认时间
     */
    @TableField("amazon_time")
    private Date amazonTime;

    /**
     * 实际约车时间
     */
    @TableField("appointment_time")
    private Date appointmentTime;

    /**
     * 1:待确定 2：待约车3：已约车4：已配送
     */
    @TableField("status")
    private Integer status;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
